<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>展示表格内容</title>
</head>

<body>
    <!--载入默认美化样式-->
    <link rel="stylesheet" href="https://unpkg.com/@picocss/pico@1.*/css/pico.min.css">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

    <div id="Application">


        <table>
            <thead>
                <tr>
                    <th>ID</th>

                    <th>时间</th>
                    <th>展现次数</th>
                </tr>
            </thead>
            <tbody>
                <tr v-for="(item,index) in dataList" :key="item.index">
                    <td>{{ item.id }}</td>
                    <td>{{ item.date }}</td>
                    <td>{{ item.count }}</td>
                </tr>
            </tbody>
        </table>

    </div>
    <script>
        const App = Vue.createApp({
            setup() {
                //原始数据数组
                const dataList = [
                    { id: '2', date: '2023-04-20', count: '1' },
                    { id: '3', date: '2023-04-20', count: '8' },
                    { id: '4', date: '2023-04-25', count: '5' },
                    { id: '2', date: '2023-04-20', count: '6' },
                    { id: '2', date: '2023-04-21', count: '2' },
                    { id: '3', date: '2023-04-22', count: '9' },
                ];


                return {
                    dataList,
                };
            },
        });
        App.mount("#Application");
    </script>
</body>

</html>